import java.util.Scanner;

public class Holiday {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入月份：");
        int month = scanner.nextInt();
        System.out.println("请输入年龄：");
        int age = scanner.nextInt();
        if (month >= 4 && month <= 10 ) {
            if (age >= 18 && age <= 60) {
                System.out.println("成人票，票价60");
            }
            if (age < 18) {
                System.out.println("儿童票，半价");
            }
            if (age > 60) {
                System.out.println("老年票，三分之一票价");
            }
        } else {
            if (age >= 18 && age <= 60) {
                System.out.println("成人票，票价60");
            } else {
                System.out.println("其他票，票价20");
            }
        }
    }
}
